var express = require('express');
var router = express.Router();

/*
 * @Author: 岸舟
 * @Date: 2020-09-18 17:55:09
 * @LastEditors: MiNine
 * @LastEditTime: 2020-09-29 15:16:57
 * @Description: 定义了二级路径及方法名
 */
const {
  delMyClient,
  loginClient,
  registerClient,
  getMyClient,
  getClients,
  modMyClient,
  forgetClient,
  getOneClient,
  updateOneClient
} = require('../controllers/clientCon');

const {
  permission159
} = require('../utils/permissionVerify');

router.post('/delMyClient', permission159, delMyClient);
router.get('/loginClient', loginClient);
router.post('/registerClient', registerClient);
router.get('/getMyClient', permission159, getMyClient);
router.get('/getClients', permission159, getClients);
router.post('/modMyClient', modMyClient);
router.post('/forgetClient', forgetClient);
router.post('/updateOneClient', updateOneClient);
router.get('/getOneClient', getOneClient);


module.exports = router;